package light.head.dao.el;

import org.springframework.stereotype.Service;

import light.head.framework.base.BaseDAO;
import light.head.model.el.TopicCourseRelation;
@Service
public class TopicCourseRelationDAO extends BaseDAO<TopicCourseRelation, Integer>{
private final String hql_findTCRByCCAndTc ="FROM TopicCourseRelation tcr WHERE  tcr.tc = ? AND tcr.cc = ?";
	
	public TopicCourseRelation findTCRByCCAndTc(Integer tc,Integer cc){
			return (TopicCourseRelation)get(hql_findTCRByCCAndTc, tc,cc);
	}
}
